package org.greenrobot.eventbus.annotationprocessor;

import java.util.ArrayList;

import javax.lang.model.element.Name;
import javax.lang.model.element.TypeElement;

/**
 * Created by harryguo on 2018/7/22.
 * 本类记录的是：订阅者所在的类
 */
public class SubscribeClass {
    private TypeElement mTypeElement;
    private ArrayList<SubscribeMethodElement> mMethods = null;

    public SubscribeClass(TypeElement typeElement) {
        mTypeElement = typeElement;
        mMethods = new ArrayList<>();
    }

    public Name getFullClassName() {
        return mTypeElement.getQualifiedName();
    }

    public void addMethod(SubscribeMethodElement method) {
        mMethods.add(method);
    }
}
